home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Changing name of procedure in a library
- Date: 25 Feb 1996 11:40:49 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4gqe01INNt2o@keats.ugrad.cs.ubc.ca>
- References: <4frjts$k0c@news.unicomp.net>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4frjts$k0c@news.unicomp.net>,
- Mark Hoffman <mhoffman@unicomp.net> wrote:
- >All,
- >
- >I sincerely hope this is not too off topic.
- >
- >I have a situation where I am using a couple of libraries when I compile and
- >link my source code. The problem is, both libraries define the WEP. (Windows
- >Exit Procedure) The linker claims there is a redefinition of a procedure
- >(which there is) and quits. Is there a way around this? I must use both
- >libraries, but I only need one copy of the procedure. Can I change the name in
- >one library?
-
- Get an editor that can edit binary files (vim, or a good hex editor). I wrote
- one for Unix called "hi", a word formed from "hex" + "vi". It's braindead in
- that it doesn't have regexp searches (yet).
-
- Simply locate the symbol "Wep" and change it to "Wet" or something like that.
- Make sure you don't change the length of the file when you do this, or be
- prepared to suffer.
-
- Change any relevant header declarations and you are set.
- --
-
-